package research.ui.editors.tableeditors.strength;

import org.eclipse.jface.viewers.Viewer;

import research.domain.StrengthValue;
import research.ui.editors.tableeditors.EntitySorter;

public class StrengthSorter extends EntitySorter {

	@Override
	public int compare(Viewer viewer, Object o1, Object o2) {
		StrengthValue for1 = (StrengthValue) o1;
		StrengthValue for2 = (StrengthValue) o2;

		return for1.getNumber() - for2.getNumber();
	}
	
}
